<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 微信单图文素材
 */
class CreateWechatNews extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_news', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('图文标题');
            $table->string('desc')->comment('图文子标题');
            $table->string('pic')->comment('封面本地图片地址');
            $table->string('originPic')->comment('原封面本地图片地址');
            $table->string('link')->comment('点击图文消息跳转链接');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('wechat_news');
    }
}
